package edu.gatech.cs2340.OregonTrail;

public class Item {
	private String itemName;
	private  int weight;
	private int baseCost;
	
	
	public Item(){
		itemName = "Default Template, do not use";
		weight = Integer.MAX_VALUE;
		baseCost = Integer.MAX_VALUE;
	}
	
	


	/* (non-Javadoc)
	 * @see java.lang.Object#equals(java.lang.Object)
	 */
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Item other = (Item) obj;
		if (itemName == null) {
			if (other.itemName != null)
				return false;
		} else if (!itemName.equalsIgnoreCase(other.itemName))
			return false;
		return true;
	}
	
	public int hashCode(){
		return itemName.hashCode();
	}


	/**
	 * @return the itemName
	 */
	public String getItemName() {
		return itemName;
	}
	/**
	 * @param itemName the itemName to set
	 */
	public void setItemName(String itemName) {
		this.itemName = itemName;
	}
	/**
	 * @return the weight
	 */
	public int getWeight() {
		return weight;
	}
	/**
	 * @param weight the weight to set
	 */
	public void setWeight(int weight) {
		this.weight = weight;
	}
	/**
	 * @return the baseCost
	 */
	public int getBaseCost() {
		return baseCost;
	}
	/**
	 * @param baseCost the baseCost to set
	 */
	public void setBaseCost(int baseCost) {
		this.baseCost = baseCost;
	}

}
